cmake_minimum_required(VERSION 3.20)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(import-boost)

add_library(boost-regex STATIC IMPORTED)

if(WIN32)

else()
    set(BOOST_REGEX_LIB_PATH "/usr/local/lib/libboost_regex.a")
    set(BOOST_INCLUDE_PATH "/usr/local/include")
endif()

message(${BOOST_REGEX_LIB_PATH})
message(${BOOST_INCLUDE_PATH})


target_include_directories(boost-regex INTERFACE ${BOOST_INCLUDE_PATH})

set_target_properties(boost-regex PROPERTIES IMPORTED_LOCATION ${BOOST_REGEX_LIB_PATH})

add_executable(main main.cpp)

target_link_libraries(main boost-regex)